$(document).ready(function() {
  $.each(data, function(k, v) {
    $('#player').append(
      $('<option />').val(k).text(v.name)
    );
  });

  $('#player').change(function() {
    $('#chart').empty();
    shots = data[this.value].shots;
    $.each(shots, function() {
      $('#chart').append($('<div />', {
        class: $(this)[2] ? 'made' : 'missed',
        css: {left: $(this)[0], top: 268 - $(this)[1]}
      }));
    });
  });
});